﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TathamOddie.OpenSearchValidator.Logic
{
	public class Message
	{
		readonly MessageType type;
		readonly string text;

		public Message(MessageType type, string messageFormat, params object[] messageParams)
			: this(type, string.Format(messageFormat, messageParams))
		{
		}

		public Message(MessageType type, string text)
		{
			this.type = type;
			this.text = text;
		}

		public MessageType Type { get { return type; } }
		public string Text { get { return text; } }
	}
}